package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
*  使用记录的实体类
**/
@Data
public class CardUse implements Serializable {

    private static final long serialVersionUID = 1L;

    //ID
    private Integer id;
    //用户id
    private Integer userId;
    //涉及卡id
    private Integer cardId;
    //涉及卡id
    private String cardName;
    //使用方式
    private String type;
    //时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

}